package com.jqr.activity.myschool.https.models

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName

data class Articles(@SerializedName("msg")
                    var msg: String = "",
                    @SerializedName("code")
                    var code: Int = 0,
                    @SerializedName("data")
                    var data: Data,
                    @SerializedName("success")
                    var success: Boolean = false)

data class Data(@SerializedName("data")
                var data: List<ArticleNoContent>?)
@Entity
data class ArticleNoContent(
    @SerializedName("userinfoId")
    @ColumnInfo(name = "userinfo_idd")
    val userinfoId: Int = 0,
    @SerializedName("deleted")
    val deleted: Int = 0,
    @ColumnInfo(name = "sub_title")
    @SerializedName("subTitle")
    val subTitle: String = "",

    @SerializedName("createTime")
    @ColumnInfo(name = "create_time")
    val createTime: String = "",
    @SerializedName("articleCatId")
    @ColumnInfo(name = "article_cat_id")
    val articleCatId: Int = 0,
    @SerializedName("updateTime")
    @ColumnInfo(name = "update_time")
    val updateTime: String = "",
    @SerializedName("id")
    @PrimaryKey
    val id: Int = 0,
    @SerializedName("title")
    val title: String = "",
    @SerializedName("status")
    val status: String = ""
)